package com.lr.frame.common.colorful.reflect.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class InvocationHandlerImpl<E> implements InvocationHandler  {

	private E proxyTarget;
	public InvocationHandlerImpl(E proxyTarget) {
		this.proxyTarget=proxyTarget;
	}
	
	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		Object obj= method.invoke(proxyTarget, args);
		System.out.println(proxy.getClass().getClassLoader().getResource(""));
		System.out.println(proxy.getClass());
		System.out.println(method.getClass());
		System.out.println(proxyTarget.getClass());
		return obj;
	}

}
